﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Fashion.Models.Model.ProductModel>" %>
<%
    Html.EnableClientValidation();%>
<%using (Html.BeginForm()){%>
<%:Html.HiddenFor(i => i.CategoryId)%>
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            Name
        </td>
        <td>
            <%:Html.TextBoxFor(i => i.Name, new { @class="textbox"})%>
            <%:Html.ValidationMessageFor(i => i.Name)%>
        </td>
    </tr>
    <tr>
        <td>
            Description
        </td>
        <td>
            <%:Html.TextAreaFor(i => i.Description, new { @class="textarea"})%>
        </td>
    </tr>
    <tr>
        <td>
            Price
        </td>
        <td>
            <%:Html.TextBoxFor(i => i.Price)%>
            <%:Html.ValidationMessageFor(i => i.Price)%>
        </td>
    </tr>
    <tr>
        <td>
            Currency
        </td>
        <td>
            <%:Html.TextBoxFor(i => i.Currency)%>
            <%:Html.ValidationMessageFor(i => i.Currency)%>
        </td>
    </tr>
    <tr>
        <td>
            Quantity
        </td>
        <td>
            <%:Html.TextBoxFor(i => i.Quantity)%>
            <%:Html.ValidationMessageFor(i => i.Quantity)%>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <input type="submit" name="" value="Submit" />
        </td>
    </tr>
</table>
<%}%>
